<?php

namespace app\validate;

use share\validate\SceneValidate;

class DescribeInfoValidate extends SceneValidate{
    protected $rule = [
        'id' => 'require|integer',  
        'language' => 'require|length:1,32',
        'describeNameId' =>  'require|length:1,32',
        'describeName' => 'require|length:1,250',    
        'describeInfoId' =>  'require|length:32',
    ];   
    


    protected $scene = [
        'add' => ['describeNameId','language','describeName'],
        'edit' => ['id','language','describeName'],
        'del' => ['id'],
        'list' => ['describeInfoId'],
    ];
}